<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="../css/stylesite.css" medial="all" />
<link rel="stylesheet" type="text/css" href="../css/styleleft.css" medial="all" />
<link rel="stylesheet" type="text/css" href="../css/mystyle.css" medial="all" />
	<script src="../js/jquery-1.8.2.min.js" ></script>
	<script src="../js/image.js" type="text/javascript"></script>
        <script src="../js/jsearch.js" type="text/javascript"></script>  
	<script type="text/javascript">
	$(function(){
		$(".button a").click(function(){
		$(this).parent().addClass('current');
		$(this).siblings().removeClass('current');
		});
		});
	</script>
<title>XEM BÀI VIẾT</title>
</head>

<body class="pagebody">
	<div id="wrapwebsite" >
				<?php 
			include('../element/header.php');?>
			<div class="imagestop"></div>
			<div class="wrapmaincontent">
		<?php
		include('../element/leftside.php');
		?>
		<div class="center-leftmargin">
                  <div class="moduletitle"><h2> XEM BÀI VIẾT</h2></div>
		<div class="modulecontent">
                     <?php
                     include 'Article_model.php';
                   $UserName=$_SESSION['user'][1];
                    $article= getArticle_User($UserName);    
                          foreach ($article as $a) {  
                    ?>
                     <p><font color="green">Bài viết đang chờ admin duyệt...,bạn cũng có thể chỉnh sửa lại</font></p> 
                    <a href="v_articlePosted.php?ArticleID_1=<?php echo $a[0]; ?>"><img src="../images/1352648277_message_edit.png" width="30px" height="30px" alt="Cập nhật bài viết" title="Cập nhật bài viết" /></a>
                 
                   
                <table width="700px" text-align="center">
                    <tr>
                        <td class="title-article"><?php echo $a[1]; ?></td>
                    </tr>
                    <tr>
                        <td class="author-article"><?php echo $a[3]; ?></td>
                    </tr>
                     <tr>
                        <td class="content-article-article"><?php echo $a[2]; ?></td>
                    </tr>
                    <tr>
                        <td text-align="right" class="content-article-article"><a href="v_ArticlePost.php"><img src="../images/1354196486_mail_post.png" width="48px" height="48px" alt="Viết Bài" title="Viết Bài"> </a></td>
                    </tr>
                </table>
                <?php }?>
                </div>
                </div>
		</div>
		
		<?php include('../element/footer.php'); ?>
</div>
</body>
</html>
